package com.cl.blog.web.client;

import com.cl.blog.common.Result;
import com.cl.blog.service.BHistoryLookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 付
 * @Date 2024-04-10 14:57
 * @Version 1.0
 * @description 浏览历史
 * @since 1.0
 */
@RestController
@RequestMapping("/user/history")
public class HistoryLookController {
	@Autowired
	BHistoryLookService bHistoryLookService;

	@GetMapping("/list")
	public Result list(HttpServletRequest request){
		Object list = bHistoryLookService.selectAll(request);
		return Result.success(list);
	}
}
